#include "LitesqlDatabasePanel.h"
#include "xmlobjects.hpp"

#include "ddx.h"

using namespace ui;
using namespace xml;

LitesqlDatabasePanel::LitesqlDatabasePanel( wxWindow* parent,DatabasePtr& db )
:
DatabasePanel( parent ),
m_database(db)
{
  m_textName->SetValidator(     StdStringValidator(wxFILTER_ALPHANUMERIC,
						   &m_database->name    ));
  m_textInclude->SetValidator(  StdStringValidator(wxFILTER_ALPHANUMERIC,
						   &m_database->include));
  m_textNamespace->SetValidator(StdStringValidator(wxFILTER_ALPHANUMERIC,
						   &m_database->nspace));
}
